var Router = require('koa-router');
var router = new Router();
router.get('/pending', (ctx) => {
  ctx.body = {
    "list": [{
      'operateSurgery': '换头手术',
      'editor': 'ming',
      'editTime': '2018-03-12',
      'type': 'wai',
      'description': '<p><strong>afsafda&nbsp; </strong><em>sdfasfa&nbsp; &nbsp;</em></p>↵<table style="border-collapse: collapse; width: 100%;" border="1">↵<tbody>↵<tr>↵<td style="width: 50%;">sfas</td>↵<td style="width: 50%;">sdafas</td>↵</tr>↵</tbody>↵</table>',
      'status': 0
    }, {
      'operateSurgery': '白内障',
      'editor': 'ming',
      'editTime': '2018-03-12',
      'type': 'wai1',
      'description': '赛段萨洒洒地方',
      'status': 1
    }]
  }
})
router.get('/getDoctorList', (ctx) => {
  ctx.body = {
    "list": [{
      'name': 'ming',
      'age': 20,
      'gender': '男',
      'ID': '13456789101112',
      'doctor': 'pro doctor',
      'surgery': 'shoushu',
      'expectTime': '2018-03-12',
      'telephone': '9874562122',
      'origin': 'ori 12'
    }]
  }
})
router.post('/postForm', (ctx) => {
  console.log(ctx.request.body);
  ctx.body = {
      'message': 'success'
  }
})

module.exports = router.routes();